import request from '@/utils/request'
export function getClassList(data) {
    // 获取班级列表
    return request({
        url: '/class/getPageList',
        method: 'post',
        data
    })
}

export function addClass(data) {
    // 添加班级
    return request({
        url: '/class/save',
        method: 'post',
        data
    })
}

export function editClass(data) {
    // 修改班级
    return request({
        url: '/class/update',
        method: 'post',
        data
    })
}

export function deleteClass(data) {
    // 删除班级
    return request({
        url: '/class/delete',
        method: 'post',
        data
    })
}